import Vue from 'vue'
import VueRouter from 'vue-router'
import home from './modules/home'
import install from './modules/install'
import found from './modules/found'
import login from './modules/login'
import player from './modules/player'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  ...home,
  ...install,
  ...found,
  ...login,
  ...player
]

const router = new VueRouter({
  routes
})

export default router
